﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MVCPets.Extensions;

namespace MVCPets.Tests.Extensions
{
  [TestClass]
  public class TimeTests
  {
    [TestMethod]
    public void Test_Convert_From_CourswareTime()
    {
      TimeSpan ts = .98554.ConvertCoursewareTime();
      Assert.IsTrue(ts.Hours == 0);
      Assert.IsTrue(ts.Minutes == 59);
      Assert.IsTrue(ts.Seconds == 08);
    }
  }
}
